package com.manage.user.dao;

import com.manage.user.entity.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Fitch
 */
@Repository
public interface UserRepository extends CrudRepository<User,Long> {
    /**
     *
     * @param id
     * @return
     */
    User getById(Long id);

    /**
     *
     * @param userName
     * @return
     */
    List<User> findAllByUserName(String userName);
}
